<!doctype html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport"
        content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>组件库</title>
  <link rel="stylesheet/less" type="text/css" href="../css/common.less" />
  <link rel="stylesheet/less" type="text/css" href="./common.less" />
  <script src="../js/jquery.min.js"></script>
  <script src="../js/bootstrap.min.js"></script>
  <link rel="stylesheet" href="../css/bootstrap.min.css">
</head>
<body>
<div id="app">
  <!-- 标题 -->
  <div class="box">
    <div class="tips">标题</div>
    <p>使用方法: 每个组件都对应着一个 <i>html</i> 代码和一些 <i>less-css</i> (在同目录的 common.less 中) 以及 <i>JavaScript</i> 代码</p>
    <p>将<i>html</i> 代码复制到想要的位置, 将 <i>style标签</i> 复制到能控制那个页面的 .less 文件中, 同理  <i>JavaScript</i> 代码 也是</p>
  </div>

  <!-- 图片轮播 -->
  <div class="box">
    <div class="tips">
      轮播
    </div>
    <div id="carouselID" class="carousel slide lunbo">
      <!-- 轮播（Carousel）指标 -->
      <ol class="carousel-indicators">
        <li data-target="#carouselID" data-slide-to="0" class="active"></li>
        <li data-target="#carouselID" data-slide-to="1"></li>
        <li data-target="#carouselID" data-slide-to="2"></li>
      </ol>
      <!-- 轮播（Carousel）项目 -->
      <div class="carousel-inner">
        <div class="item active">
          <img src="https://img.alicdn.com/imgextra/i1/13533312/TB2Zey5XyYiFuJjSZFCXXXn2pXa_!!13533312.jpg" alt="First slide">
          <!-- 标题 -->
          <div class="carousel-caption">
            <h2>这是标题</h2>
            <p>Hello  hello hello hello hello hello</p>
          </div>
        </div>
        <div class="item">
          <img src="https://img.alicdn.com/imgextra/i1/13533312/TB2Zey5XyYiFuJjSZFCXXXn2pXa_!!13533312.jpg" alt="Second slide">
          <!-- 标题 -->
          <div class="carousel-caption">
            <h2>这是标题2</h2>
            <p>Hello  hello hello hello hello hello</p>
          </div>
        </div>
        <div class="item">
          <img src="https://img.alicdn.com/imgextra/i1/13533312/TB2Zey5XyYiFuJjSZFCXXXn2pXa_!!13533312.jpg" alt="Third slide">
          <!-- 标题 -->
          <div class="carousel-caption">
            <h2>这是标题3</h2>
            <p>Hello  hello hello hello hello hello</p>
          </div>
        </div>
      </div>
      <!-- 轮播（Carousel）导航 -->
      <a class="handle left" href="#carouselID"
         data-slide="prev">&lsaquo;</a>
      <a class="handle right" href="#carouselID"
         data-slide="next">&rsaquo;</a>
    </div>

    <!-- 自动轮播时间控制 -->
    <script>
      $('.carousel').carousel({
        interval: 1000
      })
    </script>
  </div>
</div>
<script src="../util/less.min.js"></script>
</body>
</html>